Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list machine objects #367

Closed
wants to merge 3 commits into from
Closed

Conversation

tedteng
Copy link
Contributor

@tedteng tedteng commented Jan 11, 2024

What this PR does / why we need it:
image

Which issue(s) this PR fixes:
Fixes #361

Special notes for your reviewer:

Release note:

`gardenctl ssh` list nodes that are unable to join the cluster. The list is based on the machine objects

@tedteng tedteng requested a review from a team as a code owner January 11, 2024 02:30
@gardener-robot gardener-robot added needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Jan 11, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jan 11, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jan 11, 2024
Copy link
Member

@petersutter petersutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. it's not necessary to hold additional info on the options struct - get rid of it and move the code in the complete function to the place where the machines are fetched
  2. fetch the nodes and just try to fetch the machines (ignore forbidden errors and just log all other erros like it was done in the other PR) and pass both lists to the NewConnectInformation and handle it there instead of creating fake corev1.Node structs

@gardener-robot gardener-robot added the needs/changes Needs (more) changes label Jan 11, 2024
@tedteng tedteng marked this pull request as draft January 12, 2024 09:02
@gardener-robot-ci-2 gardener-robot-ci-2 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jan 15, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jan 15, 2024
@tedteng tedteng marked this pull request as ready for review January 15, 2024 03:11
@petersutter
Copy link
Member

Hi @tedteng, thank you for your effort on the pull request. I see that it would require some extensive revisions. To maintain efficiency and to help guide the process, I've initiated a new PR (#368) that incorporates some of your ideas. I suggest we focus our efforts there. You may want to close this one.

Please don't hesitate to review the new PR and let me know your thoughts. Your contributions are valuable and appreciated.

@tedteng tedteng closed this Jan 17, 2024
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/changes Needs (more) changes needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

list machine information when gardenctl ssh if the user has proper permissions
5 participants